package com.czxy.dao;

import com.czxy.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;


/**
 * @author Liuyunqin 17674029449@163.com
 * @date 2018/12/13 20:47
 * UserMapper接口
 */
@org.apache.ibatis.annotations.Mapper
public interface UserMapper extends Mapper<User>  {
    /**
     * 根据电话查询用户
     * @param mobile
     * @return
     */
    @Select("select * from tb_user where mobile=#{mobile}")
    public User findByMobile(@Param("mobile") String mobile);
}
